package teach.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import teach.aistar.mapper.InsureMapper;
import teach.aistar.model.entity.Insure;
import teach.aistar.service.IInsureService;

import java.util.List;

@Service
@Transactional
public class InsureServiceImpl implements IInsureService {
    @Autowired
    private InsureMapper insureMapper;
    @Override
    public List<Insure> selectInsureAll() {
        return insureMapper.selectInsureAll();
    }

    @Override
    public Insure selectByInsuerId(int id) {
        return insureMapper.selectByInsuerId(id);
    }
}
